var Cat = { /** 类就是对象,js没有类  类的模板*/
    name: '',
    color: ''
}

var cat1 = {};
cat1.name = '大毛';
cat1.color = '黄色';
var cat2 = {};
cat2.name = '二毛';
cat2.color = '黑色';